package service;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * Represents the return of a remote procedure call over the framework.
 * 
 * @author Luiz H.Rolim
 * @version 1.0
 * 
 */
public class WebServicePojo implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 119002022362386750L;

	private Object methodReturn;
	
	private Map<String, Object> modelValues = new HashMap<String, Object> ();
	
	
	
	/**
	 * @param methodReturn the return from the controller Method
	 * @param modelValues the fields-values of the controller, used for UI binding.
	 */
	public WebServicePojo(Object methodReturn,
			Map<String, Object> modelValues) {
		super();
		this.methodReturn = methodReturn;
		this.modelValues = modelValues;
	}

	public Object getMethodReturn() {
		return methodReturn;
	}

	

	public WebServicePojo() {
		// TODO Auto-generated constructor stub
	}

	public Map<String, Object> getModelValues() {
		return modelValues;
	}

	public void setMethodReturn(Object methodReturn) {
		this.methodReturn = methodReturn;
	}

	public void setModelValues(Map<String, Object> modelValues) {
		this.modelValues = modelValues;
	}

	
	

	
	
	
	
}
